<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath }"></c:set>
<!DOCTYPE html>
<html>

<head>
<title>首页</title>
<meta charset="utf-8">
<link href="${ctx}/css/framework/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
.content {
	width: 100%;
	height: 300px;
}
</style>
<link rel="stylesheet" type="text/css" href="${ctx }/css/index.css">


</head>
<body>
	<c:import url="nav.jsp"></c:import>
	<div class="container">
		<ol class="breadcrumb">
			<li><a href="${ctx}/toHome">首页</a></li>
			<li class="active">个人中心</li>
		</ol>
		<div class="row main">
			<div class="col-md-3">
				<div class="panel panel-default">
					<div class="panel-heading">

						<c:if test="${empty(user.head_photo) }">
							<img src="${ctx }/images/defaulthead.png"
								class="img-responsive img-rounded" alt="Responsive image">
						</c:if>
						<c:if test="${!empty(user.head_photo) }">
							<img src="${user.head_photo}" class="img-responsive img-rounded"
								alt="Responsive image">
						</c:if>
						<h4>${user.user_name }</h4>
					</div>
				</div>

				<ul class="nav nav-sidebar">
					<li class="active"><a href="${ctx }/user/myzoom.html">个人信息
							<span class="sr-only">(current)</span>
					</a></li>
					<li><a href="${ctx }/user/myMatch.html">我的赛事</a></li>
					<li><a href="${ctx }/user_star.html">我的获奖</a></li>
					<li><a href="#">Application</a></li>
				</ul>
			</div>

			<div class="col-md-9">
				<h3>我的比赛</h3>
				<table class="table table-bordered table-hover">
					<thead>
						<tr>
							<th>准考证号</th>
							<th>比赛名</th>
							<th>比赛状态</th>
							<th>报名情况</th>
							<th>所获奖项</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach var="sign" items="${signList }">
							<tr>
								<td>${user.studentId}</td>
								<td>${sign.match.match_name }</td>
								<c:if test="${sign.match.state eq 0 }">
									<td>策划中</td>
								</c:if>
								<c:if test="${sign.match.state eq 1 }">
									<td>报名中</td>
								</c:if>
								<c:if test="${sign.match.state eq 2 }">
									<td>报名结束</td>
								</c:if>
								<c:if test="${sign.match.state eq 3 }">
									<td>比赛结束</td>
								</c:if>
								<td><c:if test="${sign.state eq 0 }">
	                                		已报名待审核
	                                	</c:if> <c:if test="${sign.state eq 1 }">
	                                		审核通过
	                                	</c:if></td>
								<td>${sign.prize.prize_name }</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</div>
	</div>
	<c:import url="footer.jsp"></c:import>
	<script src="${ctx }/js/framework/bootstrap.min.js"></script>
	<script src="${ctx }/js/jquery.min.js"></script>
</body>

</html>

